package com.bincloud.vue.admin.web.dto.ums.resource;

import com.bincloud.vue.admin.common.model.dto.request.BaseReqDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: 资源修改入参
 * @Author: bincloud, mvpzhou
 * @Date: Create By bincloud, mvpzhou on 2022/2/18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "资源修改入参")
public class UmsResourceModifyReqDTO extends BaseReqDTO {
    @ApiModelProperty(value = "资源ID")
    @NotNull(message = "资源ID, 不可为空")
    private Long id;

    @ApiModelProperty(value = "资源名称")
    @NotBlank(message = "资源名称, 不可为空")
    private String name;

    @ApiModelProperty(value = "资源代码")
    @NotBlank(message = "资源代码, 不可为空")
    private String code;

    @ApiModelProperty(value = "资源图标")
    private String icon;

    @ApiModelProperty(value = "资源路径")
    private String url;

    @ApiModelProperty(value = "资源类型(0 目录 1 菜单 2 按钮/接口)")
    private Integer type = 0;

    @ApiModelProperty(value = "资源排序")
    private Integer sort = 0;

    @ApiModelProperty(value = "状态(0 启用 1 禁用)")
    private Integer state = 0;
}
